﻿using org.se.fs.presenter.Library;

namespace org.se.fs.presenter.ITask.Template
{
    public interface ICrud<T>
    {
        event FormEvent.FormEventHandler OnFetch;
        event FormEvent.FormEventHandler OnFetchLists;
        event FormEvent.FormEventHandler OnInsert;
        event FormEvent.FormEventHandler OnUpdate;
        event FormEvent.FormEventHandler OnDelete;
        event FormEvent.FormEventHandler OnToggle;
        void Fetch(T data);
        void FetchLists(T data);
        void Insert(T data);
        void Update(T data);
        void Delete(T data);
        void Toggle(T data);
    }
}